from django.http import JsonResponse
from django.shortcuts import render

# Create your views here.
from rest_framework.views import APIView


# 提交数据
class CreateView(APIView):
    pass


# 注册
class RegisterUserView(APIView):
    def post(self, request, *args, **kwargs):
        username = request.POST['username']
        password = request.POST['password']
        data = {
            "mess":200
        }
        return JsonResponse(data)

# 登录
class LoginView(APIView):
    pass
